import {ElMessage} from "element-plus";

export function showMessage(res){
    switch (res.code){
        case 0:
            ElMessage.success(res.message)
            break
        default:
            ElMessage.error('错误：' + res.message)
    }
}